<<<<<<< HEAD
package com.project.housesalesystem.config;

import com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * mybatis-plus配置
 */

=======

package com.project.housesalesystem.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * mybatis-plus配置
 */
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
>>>>>>> 66dcee4e153c16ef05fd0c7e1ed9f414a0bf0bc9

@Configuration
public class MybatisPlusConfig {
    @Bean
<<<<<<< HEAD
    public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception {
        MybatisSqlSessionFactoryBean sessionFactory = new MybatisSqlSessionFactoryBean();
        sessionFactory.setDataSource(dataSource);
        return sessionFactory.getObject();
    }
}
=======
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
>>>>>>> 66dcee4e153c16ef05fd0c7e1ed9f414a0bf0bc9
